home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / program / lgavb25.zip / VB.ZIP / LGTICS.FRM < prev    next >
Text File  |  1996-01-10  |  25KB  |  766 lines

  1. VERSION 2.00
  2. Begin Form TicDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Tics"
  6.    ClientHeight    =   5340
  7.    ClientLeft      =   1860
  8.    ClientTop       =   1530
  9.    ClientWidth     =   8820
  10.    Height          =   5700
  11.    Left            =   1800
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   356
  17.    ScaleMode       =   3  'Pixel
  18.    ScaleWidth      =   588
  19.    Top             =   1230
  20.    Width           =   8940
  21.    Begin Frame Frame7 
  22.       BackColor       =   &H00C0C0C0&
  23.       Caption         =   "Scale Position Properties"
  24.       Height          =   1215
  25.       Left            =   330
  26.       TabIndex        =   46
  27.       Top             =   4020
  28.       Width           =   4080
  29.       Begin HScrollBar HScroll1 
  30.          Height          =   240
  31.          Index           =   8
  32.          Left            =   1650
  33.          Max             =   100
  34.          TabIndex        =   48
  35.          Top             =   645
  36.          Width           =   1800
  37.       End
  38.       Begin HScrollBar HScroll1 
  39.          Height          =   240
  40.          Index           =   7
  41.          Left            =   1650
  42.          Max             =   100
  43.          TabIndex        =   47
  44.          Top             =   390
  45.          Width           =   1800
  46.       End
  47.       Begin Label Label1 
  48.          Alignment       =   1  'Right Justify
  49.          AutoSize        =   -1  'True
  50.          BackStyle       =   0  'Transparent
  51.          Caption         =   "ScalePositionStop:"
  52.          FontBold        =   0   'False
  53.          FontItalic      =   0   'False
  54.          FontName        =   "Arial"
  55.          FontSize        =   8.25
  56.          FontStrikethru  =   0   'False
  57.          FontUnderline   =   0   'False
  58.          Height          =   210
  59.          Index           =   8
  60.          Left            =   270
  61.          TabIndex        =   18
  62.          Top             =   660
  63.          Width           =   1335
  64.       End
  65.       Begin Label Label2 
  66.          AutoSize        =   -1  'True
  67.          BackStyle       =   0  'Transparent
  68.          Caption         =   " 0"
  69.          Height          =   195
  70.          Index           =   8
  71.          Left            =   3480
  72.          TabIndex        =   49
  73.          Top             =   660
  74.          Width           =   180
  75.       End
  76.       Begin Label Label1 
  77.          Alignment       =   1  'Right Justify
  78.          AutoSize        =   -1  'True
  79.          BackStyle       =   0  'Transparent
  80.          Caption         =   "ScalePositionStart:"
  81.          FontBold        =   0   'False
  82.          FontItalic      =   0   'False
  83.          FontName        =   "Arial"
  84.          FontSize        =   8.25
  85.          FontStrikethru  =   0   'False
  86.          FontUnderline   =   0   'False
  87.          Height          =   210
  88.          Index           =   7
  89.          Left            =   255
  90.          TabIndex        =   50
  91.          Top             =   420
  92.          Width           =   1350
  93.       End
  94.       Begin Label Label2 
  95.          AutoSize        =   -1  'True
  96.          BackStyle       =   0  'Transparent
  97.          Caption         =   " 0"
  98.          Height          =   195
  99.          Index           =   7
  100.          Left            =   3480
  101.          TabIndex        =   51
  102.          Top             =   420
  103.          Width           =   180
  104.       End
  105.    End
  106.    Begin LGAUGE LGauge1 
  107.       AutoRedraw      =   -1  'True
  108.       AVersion        =   2.501
  109.       BackColor       =   &H00C0C0C0&
  110.       BandID          =   0
  111.       Bands           =   0
  112.       BevelInner      =   0  ' 0 - None
  113.       BevelOuter      =   2  ' 2 - Inset
  114.       BevelWidth      =   2
  115.       BorderWidth     =   2
  116.       CaptionID       =   0
  117.       Captions        =   0
  118.       FontID          =   0
  119.       Height          =   2595
  120.       Left            =   240
  121.       Orientation     =   0  ' 0 - Horizontal
  122.       PointerID       =   0
  123.       Pointers        =   1
  124.       ScaleID         =   0
  125.       Scales          =   1
  126.       TabIndex        =   44
  127.       TicID           =   0
  128.       Tics            =   3
  129.       Top             =   750
  130.       Width           =   4215
  131.       ZLoad           =   LGTICS.FRX:0000
  132.    End
  133.    Begin Frame Frame6 
  134.       BackColor       =   &H00C0C0C0&
  135.       Caption         =   "Tic Label Properties"
  136.       Height          =   1215
  137.       Left            =   4620
  138.       TabIndex        =   4
  139.       Top             =   4020
  140.       Width           =   4095
  141.       Begin CheckBox Check1 
  142.          BackColor       =   &H00C0C0C0&
  143.          Caption         =   "TicLabelOn"
  144.          FontBold        =   0   'False
  145.          FontItalic      =   0   'False
  146.          FontName        =   "Arial"
  147.          FontSize        =   8.25
  148.          FontStrikethru  =   0   'False
  149.          FontUnderline   =   0   'False
  150.          Height          =   210
  151.          Left            =   1440
  152.          TabIndex        =   7
  153.          Top             =   300
  154.          Value           =   1  'Checked
  155.          Width           =   1095
  156.       End
  157.       Begin HScrollBar HScroll1 
  158.          Height          =   240
  159.          Index           =   6
  160.          Left            =   1470
  161.          Max             =   100
  162.          TabIndex        =   8
  163.          Top             =   630
  164.          Width           =   2130
  165.       End
  166.       Begin Label Label2 
  167.          AutoSize        =   -1  'True
  168.          BackStyle       =   0  'Transparent
  169.          Caption         =   " 0"
  170.          Height          =   195
  171.          Index           =   6
  172.          Left            =   3630
  173.          TabIndex        =   10
  174.          Top             =   645
  175.          Width           =   180
  176.       End
  177.       Begin Label Label1 
  178.          Alignment       =   1  'Right Justify
  179.          AutoSize        =   -1  'True
  180.          BackStyle       =   0  'Transparent
  181.          Caption         =   "TicLabelPosition:"
  182.          FontBold        =   0   'False
  183.          FontItalic      =   0   'False
  184.          FontName        =   "Arial"
  185.          FontSize        =   8.25
  186.          FontStrikethru  =   0   'False
  187.          FontUnderline   =   0   'False
  188.          Height          =   210
  189.          Index           =   6
  190.          Left            =   240
  191.          TabIndex        =   19
  192.          Top             =   645
  193.          Width           =   1200
  194.       End
  195.    End
  196.    Begin Frame Frame5 
  197.       BackColor       =   &H00C0C0C0&
  198.       Caption         =   "Tic Size Properties"
  199.       Height          =   1215
  200.       Left            =   4635
  201.       TabIndex        =   34
  202.       Top             =   2775
  203.       Width           =   4080
  204.       Begin HScrollBar HScroll1 
  205.          Height          =   240
  206.          Index           =   5
  207.          Left            =   990
  208.          Max             =   100
  209.          TabIndex        =   43
  210.          Top             =   795
  211.          Width           =   2400
  212.       End
  213.       Begin HScrollBar HScroll1 
  214.          Height          =   240
  215.          Index           =   3
  216.          Left            =   990
  217.          Max             =   100
  218.          TabIndex        =   20
  219.          Top             =   315
  220.          Width           =   2400
  221.       End
  222.       Begin HScrollBar HScroll1 
  223.          Height          =   240
  224.          Index           =   4
  225.          Left            =   990
  226.          Max             =   100
  227.          TabIndex        =   21
  228.          Top             =   555
  229.          Width           =   2400
  230.       End
  231.       Begin Label Label1 
  232.          Alignment       =   1  'Right Justify
  233.          AutoSize        =   -1  'True
  234.          BackStyle       =   0  'Transparent
  235.          Caption         =   "TicWidth:"
  236.          FontBold        =   0   'False
  237.          FontItalic      =   0   'False
  238.          FontName        =   "Arial"
  239.          FontSize        =   8.25
  240.          FontStrikethru  =   0   'False
  241.          FontUnderline   =   0   'False
  242.          Height          =   210
  243.          Index           =   5
  244.          Left            =   300
  245.          TabIndex        =   26
  246.          Top             =   810
  247.          Width           =   660
  248.       End
  249.       Begin Label Label2 
  250.          AutoSize        =   -1  'True
  251.          BackStyle       =   0  'Transparent
  252.          Caption         =   " 0"
  253.          Height          =   195
  254.          Index           =   5
  255.          Left            =   3420
  256.          TabIndex        =   31
  257.          Top             =   840
  258.          Width           =   180
  259.       End
  260.       Begin Label Label2 
  261.          AutoSize        =   -1  'True
  262.          BackStyle       =   0  'Transparent
  263.          Caption         =   " 0"
  264.          Height          =   195
  265.          Index           =   3
  266.          Left            =   3420
  267.          TabIndex        =   22
  268.          Top             =   330
  269.          Width           =   180
  270.       End
  271.       Begin Label Label1 
  272.          Alignment       =   1  'Right Justify
  273.          AutoSize        =   -1  'True
  274.          BackStyle       =   0  'Transparent
  275.          Caption         =   "TicInner:"
  276.          FontBold        =   0   'False
  277.          FontItalic      =   0   'False
  278.          FontName        =   "Arial"
  279.          FontSize        =   8.25
  280.          FontStrikethru  =   0   'False
  281.          FontUnderline   =   0   'False
  282.          Height          =   210
  283.          Index           =   3
  284.          Left            =   345
  285.          TabIndex        =   23
  286.          Top             =   330
  287.          Width           =   615
  288.       End
  289.       Begin Label Label2 
  290.          AutoSize        =   -1  'True
  291.          BackStyle       =   0  'Transparent
  292.          Caption         =   " 0"
  293.          Height          =   195
  294.          Index           =   4
  295.          Left            =   3420
  296.          TabIndex        =   24
  297.          Top             =   570
  298.          Width           =   180
  299.       End
  300.       Begin Label Label1 
  301.          Alignment       =   1  'Right Justify
  302.          AutoSize        =   -1  'True
  303.          BackStyle       =   0  'Transparent
  304.          Caption         =   "TicOuter:"
  305.          FontBold        =   0   'False
  306.          FontItalic      =   0   'False
  307.          FontName        =   "Arial"
  308.          FontSize        =   8.25
  309.          FontStrikethru  =   0   'False
  310.          FontUnderline   =   0   'False
  311.          Height          =   210
  312.          Index           =   4
  313.          Left            =   315
  314.          TabIndex        =   25
  315.          Top             =   570
  316.          Width           =   660
  317.       End
  318.    End
  319.    Begin Frame Frame4 
  320.       BackColor       =   &H00C0C0C0&
  321.       Caption         =   "Tic Value Properties"
  322.       Height          =   1200
  323.       Left            =   4635
  324.       TabIndex        =   33
  325.       Top             =   1545
  326.       Width           =   4080
  327.       Begin HScrollBar HScroll1 
  328.          Height          =   240
  329.          Index           =   0
  330.          Left            =   990
  331.          Max             =   100
  332.          TabIndex        =   37
  333.          Top             =   285
  334.          Width           =   2400
  335.       End
  336.       Begin HScrollBar HScroll1 
  337.          Height          =   240
  338.          Index           =   1
  339.          Left            =   990
  340.          Max             =   100
  341.          TabIndex        =   36
  342.          Top             =   525
  343.          Width           =   2400
  344.       End
  345.       Begin HScrollBar HScroll1 
  346.          Height          =   240
  347.          Index           =   2
  348.          Left            =   990
  349.          Max             =   100
  350.          TabIndex        =   35
  351.          Top             =   750
  352.          Width           =   2400
  353.       End
  354.       Begin Label Label2 
  355.          AutoSize        =   -1  'True
  356.          BackStyle       =   0  'Transparent
  357.          Caption         =   " 0"
  358.          Height          =   195
  359.          Index           =   0
  360.          Left            =   3405
  361.          TabIndex        =   32
  362.          Top             =   300
  363.          Width           =   180
  364.       End
  365.       Begin Label Label1 
  366.          Alignment       =   1  'Right Justify
  367.          AutoSize        =   -1  'True
  368.          BackStyle       =   0  'Transparent
  369.          Caption         =   "TicStart:"
  370.          FontBold        =   0   'False
  371.          FontItalic      =   0   'False
  372.          FontName        =   "Arial"
  373.          FontSize        =   8.25
  374.          FontStrikethru  =   0   'False
  375.          FontUnderline   =   0   'False
  376.          Height          =   210
  377.          Index           =   0
  378.          Left            =   360
  379.          TabIndex        =   42
  380.          Top             =   300
  381.          Width           =   600
  382.       End
  383.       Begin Label Label1 
  384.          Alignment       =   1  'Right Justify
  385.          AutoSize        =   -1  'True
  386.          BackStyle       =   0  'Transparent
  387.          Caption         =   "TicStop:"
  388.          FontBold        =   0   'False
  389.          FontItalic      =   0   'False
  390.          FontName        =   "Arial"
  391.          FontSize        =   8.25
  392.          FontStrikethru  =   0   'False
  393.          FontUnderline   =   0   'False
  394.          Height          =   210
  395.          Index           =   1
  396.          Left            =   360
  397.          TabIndex        =   41
  398.          Top             =   540
  399.          Width           =   585
  400.       End
  401.       Begin Label Label2 
  402.          AutoSize        =   -1  'True
  403.          BackStyle       =   0  'Transparent
  404.          Caption         =   " 0"
  405.          Height          =   195
  406.          Index           =   1
  407.          Left            =   3405
  408.          TabIndex        =   40
  409.          Top             =   555
  410.          Width           =   180
  411.       End
  412.       Begin Label Label2 
  413.          AutoSize        =   -1  'True
  414.          BackStyle       =   0  'Transparent
  415.          Caption         =   " 0"
  416.          Height          =   195
  417.          Index           =   2
  418.          Left            =   3405
  419.          TabIndex        =   39
  420.          Top             =   810
  421.          Width           =   180
  422.       End
  423.       Begin Label Label1 
  424.          Alignment       =   1  'Right Justify
  425.          AutoSize        =   -1  'True
  426.          BackStyle       =   0  'Transparent
  427.          Caption         =   "TicDelta:"
  428.          FontBold        =   0   'False
  429.          FontItalic      =   0   'False
  430.          FontName        =   "Arial"
  431.          FontSize        =   8.25
  432.          FontStrikethru  =   0   'False
  433.          FontUnderline   =   0   'False
  434.          Height          =   210
  435.          Index           =   2
  436.          Left            =   315
  437.          TabIndex        =   38
  438.          Top             =   780
  439.          Width           =   615
  440.       End
  441.    End
  442.    Begin Frame Frame3 
  443.       BackColor       =   &H00C0C0C0&
  444.       Caption         =   "TicColor"
  445.       Height          =   1395
  446.       Left            =   7320
  447.       TabIndex        =   3
  448.       Top             =   90
  449.       Width           =   1395
  450.       Begin Label Colors 
  451.          BackColor       =   &H00000000&
  452.          Height          =   300
  453.          Index           =   0
  454.          Left            =   240
  455.          TabIndex        =   5
  456.          Top             =   270
  457.          Width           =   300
  458.       End
  459.       Begin Label Colors 
  460.          BackColor       =   &H00808080&
  461.          Height          =   300
  462.          Index           =   1
  463.          Left            =   900
  464.          TabIndex        =   6
  465.          Top             =   600
  466.          Width           =   300
  467.       End
  468.       Begin Label Colors 
  469.          BackColor       =   &H00FFFFFF&
  470.          Height          =   300
  471.          Index           =   2
  472.          Left            =   570
  473.          TabIndex        =   11
  474.          Top             =   270
  475.          Width           =   300
  476.       End
  477.       Begin Label Colors 
  478.          BackColor       =   &H000000FF&
  479.          Height          =   300
  480.          Index           =   3
  481.          Left            =   240
  482.          TabIndex        =   12
  483.          Top             =   930
  484.          Width           =   300
  485.       End
  486.       Begin Label Colors 
  487.          BackColor       =   &H0000FF00&
  488.          Height          =   300
  489.          Index           =   4
  490.          Left            =   900
  491.          TabIndex        =   13
  492.          Top             =   270
  493.          Width           =   300
  494.       End
  495.       Begin Label Colors 
  496.          BackColor       =   &H0000FFFF&
  497.          Height          =   300
  498.          Index           =   5
  499.          Left            =   570
  500.          TabIndex        =   14
  501.          Top             =   930
  502.          Width           =   300
  503.       End
  504.       Begin Label Colors 
  505.          BackColor       =   &H00FF0000&
  506.          Height          =   300
  507.          Index           =   6
  508.          Left            =   240
  509.          TabIndex        =   15
  510.          Top             =   600
  511.          Width           =   300
  512.       End
  513.       Begin Label Colors 
  514.          BackColor       =   &H00FF00FF&
  515.          Height          =   300
  516.          Index           =   7
  517.          Left            =   900
  518.          TabIndex        =   16
  519.          Top             =   930
  520.          Width           =   300
  521.       End
  522.       Begin Label Colors 
  523.          BackColor       =   &H000080FF&
  524.          Height          =   300
  525.          Index           =   8
  526.          Left            =   570
  527.          TabIndex        =   17
  528.          Top             =   600
  529.          Width           =   300
  530.       End
  531.    End
  532.    Begin Frame Frame2 
  533.       BackColor       =   &H00C0C0C0&
  534.       Caption         =   "Tic Style"
  535.       Height          =   1395
  536.       Left            =   5730
  537.       TabIndex        =   27
  538.       Top             =   90
  539.       Width           =   1545
  540.       Begin OptionButton Option2 
  541.          BackColor       =   &H00C0C0C0&
  542.          Caption         =   "Diamond"
  543.          FontBold        =   0   'False
  544.          FontItalic      =   0   'False
  545.          FontName        =   "MS Sans Serif"
  546.          FontSize        =   8.25
  547.          FontStrikethru  =   0   'False
  548.          FontUnderline   =   0   'False
  549.          Height          =   225
  550.          Index           =   3
  551.          Left            =   180
  552.          TabIndex        =   9
  553.          Top             =   975
  554.          Width           =   1100
  555.       End
  556.       Begin OptionButton Option2 
  557.          BackColor       =   &H00C0C0C0&
  558.          Caption         =   "Triangle"
  559.          FontBold        =   0   'False
  560.          FontItalic      =   0   'False
  561.          FontName        =   "MS Sans Serif"
  562.          FontSize        =   8.25
  563.          FontStrikethru  =   0   'False
  564.          FontUnderline   =   0   'False
  565.          Height          =   225
  566.          Index           =   2
  567.          Left            =   180
  568.          TabIndex        =   30
  569.          Top             =   765
  570.          Width           =   1100
  571.       End
  572.       Begin OptionButton Option2 
  573.          BackColor       =   &H00C0C0C0&
  574.          Caption         =   "Circle"
  575.          FontBold        =   0   'False
  576.          FontItalic      =   0   'False
  577.          FontName        =   "MS Sans Serif"
  578.          FontSize        =   8.25
  579.          FontStrikethru  =   0   'False
  580.          FontUnderline   =   0   'False
  581.          Height          =   225
  582.          Index           =   1
  583.          Left            =   180
  584.          TabIndex        =   29
  585.          Top             =   555
  586.          Width           =   1100
  587.       End
  588.       Begin OptionButton Option2 
  589.          BackColor       =   &H00C0C0C0&
  590.          Caption         =   "Rectangle"
  591.          FontBold        =   0   'False
  592.          FontItalic      =   0   'False
  593.          FontName        =   "MS Sans Serif"
  594.          FontSize        =   8.25
  595.          FontStrikethru  =   0   'False
  596.          FontUnderline   =   0   'False
  597.          Height          =   225
  598.          Index           =   0
  599.          Left            =   180
  600.          TabIndex        =   28
  601.          Top             =   330
  602.          Value           =   -1  'True
  603.          Width           =   1100
  604.       End
  605.    End
  606.    Begin Frame Frame1 
  607.       BackColor       =   &H00C0C0C0&
  608.       Caption         =   "Tic ID"
  609.       Height          =   1395
  610.       Left            =   4650
  611.       TabIndex        =   0
  612.       Top             =   90
  613.       Width           =   1035
  614.       Begin OptionButton Option1 
  615.          BackColor       =   &H00C0C0C0&
  616.          Caption         =   "2"
  617.          Height          =   255
  618.          Index           =   2
  619.          Left            =   360
  620.          TabIndex        =   45
  621.          Top             =   870
  622.          Width           =   615
  623.       End
  624.       Begin OptionButton Option1 
  625.          BackColor       =   &H00C0C0C0&
  626.          Caption         =   "1"
  627.          Height          =   255
  628.          Index           =   1
  629.          Left            =   360
  630.          TabIndex        =   2
  631.          Top             =   630
  632.          Width           =   615
  633.       End
  634.       Begin OptionButton Option1 
  635.          BackColor       =   &H00C0C0C0&
  636.          Caption         =   "0"
  637.          Height          =   255
  638.          Index           =   0
  639.          Left            =   360
  640.          TabIndex        =   1
  641.          Top             =   390
  642.          Value           =   -1  'True
  643.          Width           =   615
  644.       End
  645.    End
  646. End
  647.  
  648. Sub Check1_Click ()
  649.  
  650.     lgauge1.TicLabelOn = check1
  651.  
  652. End Sub
  653.  
  654. Sub Colors_Click (index As Integer)
  655.  
  656.     lgauge1.TicColor = colors(index).BackColor
  657.  
  658. End Sub
  659.  
  660. Sub Form_Load ()
  661.  
  662.     hscroll1(0) = lgauge1.TicStart
  663.     hscroll1(1) = lgauge1.TicStop
  664.     hscroll1(2) = lgauge1.TicDelta
  665.     hscroll1(3) = lgauge1.TicInner * 100
  666.     hscroll1(4) = lgauge1.TicOuter * 100
  667.     hscroll1(5) = lgauge1.TicWidth * 1000
  668.     hscroll1(6) = lgauge1.TicLabelPosition * 100
  669.     hscroll1(7) = lgauge1.ScalePositionStart * 100
  670.     hscroll1(8) = lgauge1.ScalePositionStop * 100
  671.  
  672. End Sub
  673.  
  674. Sub HScroll1_Change (index As Integer)
  675.  
  676.     Select Case index
  677.         Case 0
  678.             lgauge1.TicStart = hscroll1(0)
  679.             label2(0) = hscroll1(0)
  680.         Case 1
  681.             lgauge1.TicStop = hscroll1(1)
  682.             label2(1) = hscroll1(1)
  683.         Case 2
  684.             lgauge1.TicDelta = hscroll1(2)
  685.             label2(2) = hscroll1(2)
  686.         Case 3
  687.             lgauge1.TicInner = hscroll1(3) / 100
  688.             label2(3) = hscroll1(3) / 100
  689.         Case 4
  690.             lgauge1.TicOuter = hscroll1(4) / 100
  691.             label2(4) = hscroll1(4) / 100
  692.         Case 5
  693.             lgauge1.TicWidth = hscroll1(5) / 1000
  694.             label2(5) = hscroll1(5) / 1000
  695.         Case 6
  696.             lgauge1.TicLabelPosition = hscroll1(6) / 100
  697.             label2(6) = hscroll1(6) / 100
  698.         Case 7
  699.             lgauge1.ScalePositionStart = hscroll1(7) / 100
  700.             label2(7) = hscroll1(7) / 100
  701.         Case 8
  702.             lgauge1.ScalePositionStop = hscroll1(8) / 100
  703.             label2(8) = hscroll1(8) / 100
  704.     End Select
  705.  
  706. End Sub
  707.  
  708. Sub HScroll1_Scroll (index As Integer)
  709.  
  710.     Select Case index
  711.         Case 0
  712.             lgauge1.TicStart = hscroll1(0)
  713.             label2(0) = hscroll1(0)
  714.         Case 1
  715.             lgauge1.TicStop = hscroll1(1)
  716.             label2(1) = hscroll1(1)
  717.         Case 2
  718.             lgauge1.TicDelta = hscroll1(2)
  719.             label2(2) = hscroll1(2)
  720.         Case 3
  721.             lgauge1.TicInner = hscroll1(3) / 100
  722.             label2(3) = hscroll1(3) / 100
  723.         Case 4
  724.             lgauge1.TicOuter = hscroll1(4) / 100
  725.             label2(4) = hscroll1(4) / 100
  726.         Case 5
  727.             lgauge1.TicWidth = hscroll1(5) / 1000
  728.             label2(5) = hscroll1(5) / 1000
  729.         Case 6
  730.             lgauge1.TicLabelPosition = hscroll1(6) / 100
  731.             label2(6) = hscroll1(6) / 100
  732.         Case 7
  733.             lgauge1.ScalePositionStart = hscroll1(7) / 100
  734.             label2(7) = hscroll1(7) / 100
  735.         Case 8
  736.             lgauge1.ScalePositionStop = hscroll1(8) / 100
  737.             label2(8) = hscroll1(8) / 100
  738.     End Select
  739.  
  740. End Sub
  741.  
  742. Sub Option1_Click (index As Integer)
  743.  
  744.     lgauge1.TicID = index
  745.     hscroll1(0) = lgauge1.TicStart
  746.     hscroll1(1) = lgauge1.TicStop
  747.     hscroll1(2) = lgauge1.TicDelta
  748.     hscroll1(3) = lgauge1.TicInner * 100
  749.     hscroll1(4) = lgauge1.TicOuter * 100
  750.     hscroll1(5) = lgauge1.TicWidth * 1000
  751.     hscroll1(6) = lgauge1.TicLabelPosition * 100
  752.     hscroll1(7) = lgauge1.ScalePositionStart * 100
  753.     hscroll1(8) = lgauge1.ScalePositionStop * 100
  754.     
  755.     option2(lgauge1.TicStyle) = True
  756.     check1 = -lgauge1.TicLabelOn
  757.  
  758. End Sub
  759.  
  760. Sub Option2_Click (index As Integer)
  761.  
  762.     lgauge1.TicStyle = index
  763.  
  764. End Sub
  765.  
  766.